/*
 * Copyright (C) 2018 Baidu, Inc. All Rights Reserved.
 */
package com.pingan.haofang.searchcloud.web.monitor.form;

import com.pingan.haofang.searchcloud.common.constants.Constants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @version 1.0
 * @description
 * @auther baojimin
 * @create 2018/4/25 10:23
 */
@ApiModel(description = "日期范围表单")
public class DateTimeRangeForm {

    @ApiModelProperty(required = true, value = "统计起始时间yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = Constants.YYYY_MM_DD_HH_MM_SS)
    private Date fromTime;

    @ApiModelProperty(required = true, value = "统计截止时间")
    @DateTimeFormat(pattern = Constants.YYYY_MM_DD_HH_MM_SS)
    private Date toTime;

    public Date getFromTime() {
        return fromTime;
    }

    public void setFromTime(Date fromTime) {
        this.fromTime = fromTime;
    }

    public Date getToTime() {
        return toTime;
    }

    public void setToTime(Date toTime) {
        this.toTime = toTime;
    }
}
